$(document).ready(function() {
    $("#registerBtn").live("click", function(){
        var u = $("#username").val();
        var p = $("#password").val(); 
        var cp = $("#confirmPassword").val();
        GeneralAjaxService.signUp(u,p,cp,function(){
            window.location.href = "/Zaetoon/home/index";
        })
    })
    function errh(msg, exc) {
        alert(msg);
    }
    dwr.engine.setErrorHandler(errh);
})
